.class public Les/zi;
.super Lcom/estrongs/android/ui/dialog/q;
.source "AuthDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/zi$d;,
        Les/zi$c;
    }
.end annotation


# static fields
.field public static final m:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Long;",
            "Les/zi;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/EditText;

.field private d:Landroid/widget/EditText;

.field private e:Landroid/widget/CheckBox;

.field private f:Landroid/widget/CheckBox;

.field g:Ljava/lang/String;

.field h:Ljava/lang/String;

.field i:Landroid/content/Context;

.field private j:Landroid/widget/CompoundButton$OnCheckedChangeListener;

.field k:Landroid/content/DialogInterface$OnClickListener;

.field protected l:Les/zi$c;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Les/zi;->m:Ljava/util/Map;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2, p2}, Les/zi;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/zi;->a:Landroid/widget/TextView;

    .line 4
    iput-object v0, p0, Les/zi;->b:Landroid/widget/TextView;

    .line 5
    iput-object v0, p0, Les/zi;->c:Landroid/widget/EditText;

    .line 6
    iput-object v0, p0, Les/zi;->d:Landroid/widget/EditText;

    .line 7
    iput-object v0, p0, Les/zi;->e:Landroid/widget/CheckBox;

    .line 8
    iput-object v0, p0, Les/zi;->f:Landroid/widget/CheckBox;

    .line 9
    new-instance v1, Les/zi$a;

    invoke-direct {v1, p0}, Les/zi$a;-><init>(Les/zi;)V

    iput-object v1, p0, Les/zi;->j:Landroid/widget/CompoundButton$OnCheckedChangeListener;

    .line 10
    new-instance v1, Les/zi$b;

    invoke-direct {v1, p0}, Les/zi$b;-><init>(Les/zi;)V

    iput-object v1, p0, Les/zi;->k:Landroid/content/DialogInterface$OnClickListener;

    .line 11
    iput-object p1, p0, Les/zi;->i:Landroid/content/Context;

    .line 12
    iput-object p2, p0, Les/zi;->h:Ljava/lang/String;

    .line 13
    iput-object p3, p0, Les/zi;->g:Ljava/lang/String;

    .line 14
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const v1, 0x7f1108e1

    invoke-virtual {p1, v1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, " "

    invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 15
    invoke-static {p3}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 16
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    .line 17
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const p3, 0x7f0c0299

    .line 18
    invoke-virtual {p2, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 19
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    const p3, 0x7f090d4f

    .line 20
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/EditText;

    iput-object p3, p0, Les/zi;->c:Landroid/widget/EditText;

    const p3, 0x7f0908b0

    .line 21
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/EditText;

    iput-object p3, p0, Les/zi;->d:Landroid/widget/EditText;

    const p3, 0x7f090d4a

    .line 22
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/CheckBox;

    iput-object p3, p0, Les/zi;->e:Landroid/widget/CheckBox;

    const p3, 0x7f0909dc

    .line 23
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/CheckBox;

    iput-object p3, p0, Les/zi;->f:Landroid/widget/CheckBox;

    const p3, 0x7f0902a6

    .line 24
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    iput-object p3, p0, Les/zi;->a:Landroid/widget/TextView;

    .line 25
    iget-object p3, p0, Les/zi;->c:Landroid/widget/EditText;

    invoke-virtual {p3}, Landroid/widget/EditText;->setSingleLine()V

    .line 26
    iget-object p3, p0, Les/zi;->e:Landroid/widget/CheckBox;

    iget-object v1, p0, Les/zi;->j:Landroid/widget/CompoundButton$OnCheckedChangeListener;

    invoke-virtual {p3, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    const p3, 0x7f090cde

    .line 27
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    iput-object p2, p0, Les/zi;->b:Landroid/widget/TextView;

    .line 28
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    const p3, 0x7f11063c

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p2

    .line 29
    iget-object p3, p0, Les/zi;->b:Landroid/widget/TextView;

    invoke-direct {p0, p2}, Les/zi;->b(Ljava/lang/String;)Landroid/text/SpannableString;

    move-result-object p2

    invoke-virtual {p3, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 30
    iget-object p2, p0, Les/zi;->b:Landroid/widget/TextView;

    invoke-static {}, Landroid/text/method/LinkMovementMethod;->getInstance()Landroid/text/method/MovementMethod;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    const p2, 0x7f11029e

    .line 31
    invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    iget-object p3, p0, Les/zi;->k:Landroid/content/DialogInterface$OnClickListener;

    invoke-virtual {p0, p2, p3}, Lcom/estrongs/android/ui/dialog/q;->setConfirmButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    const p2, 0x7f110299

    .line 32
    invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/ui/dialog/q;->setCancelButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    .line 33
    invoke-direct {p0}, Les/zi;->a()V

    return-void
.end method

.method static synthetic a(Les/zi;)Landroid/widget/CheckBox;
    .locals 0

    .line 1
    iget-object p0, p0, Les/zi;->e:Landroid/widget/CheckBox;

    return-object p0
.end method

.method private a()V
    .locals 2

    const-string v0, "lock_SMB2"

    .line 2
    invoke-static {v0}, Lcom/estrongs/android/pop/app/unlock/i;->a(Ljava/lang/String;)Les/k00;

    move-result-object v0

    .line 3
    invoke-virtual {v0}, Les/l00;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Les/zi;->b:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 5
    :cond_0
    iget-object v0, p0, Les/zi;->b:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    return-void
.end method

.method private b(Ljava/lang/String;)Landroid/text/SpannableString;
    .locals 5

    .line 2
    new-instance v0, Landroid/text/SpannableString;

    invoke-direct {v0, p1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 3
    new-instance v1, Landroid/text/style/UnderlineSpan;

    invoke-direct {v1}, Landroid/text/style/UnderlineSpan;-><init>()V

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x21

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v4, v2, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 4
    new-instance v1, Les/zi$d;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Les/zi$d;-><init>(Les/zi;Les/zi$a;)V

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result p1

    invoke-virtual {v0, v1, v4, p1, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    return-object v0
.end method

.method static synthetic b(Les/zi;)Landroid/widget/EditText;
    .locals 0

    .line 1
    iget-object p0, p0, Les/zi;->c:Landroid/widget/EditText;

    return-object p0
.end method

.method static synthetic c(Les/zi;)Landroid/widget/EditText;
    .locals 0

    .line 1
    iget-object p0, p0, Les/zi;->d:Landroid/widget/EditText;

    return-object p0
.end method

.method static synthetic d(Les/zi;)Landroid/widget/CheckBox;
    .locals 0

    .line 1
    iget-object p0, p0, Les/zi;->f:Landroid/widget/CheckBox;

    return-object p0
.end method

.method static synthetic e(Les/zi;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    return-object p0
.end method


# virtual methods
.method public a(I)V
    .locals 2

    const v0, 0x7f09089e

    .line 6
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f09089f

    .line 7
    invoke-virtual {p0, v1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    if-eqz v0, :cond_0

    .line 8
    invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    if-eqz v1, :cond_1

    .line 9
    invoke-virtual {v1, p1}, Landroid/view/View;->setVisibility(I)V

    :cond_1
    return-void
.end method

.method public a(Les/zi$c;)V
    .locals 0

    .line 10
    iput-object p1, p0, Les/zi;->l:Les/zi$c;

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 2

    if-eqz p1, :cond_0

    .line 11
    iget-object v0, p0, Les/zi;->a:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 12
    iget-object v0, p0, Les/zi;->a:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method
